﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wfrmInformacionClientesVisitarActualizar.aspx.cs" Inherits="proyGestionVisitas.Gestion.wfrmInformacionClientesVisitarActualizar" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.XtraCharts.v11.2.Web, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxchartsui" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.XtraCharts.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.XtraCharts" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #principal
        {
            width: 100% !important;
            margin: 0 auto !important;
        }
        .filas
        {
            padding: 0.5em 0.25em !important;
        }
        #fieldset_izq
        {
            float: left !important;
            margin-right: 0.1em;
        }
        #fieldset_der
        {
            float: right !important;
        }
        #fieldset_izq
        {
            width: 55% !important;
        }
        #fieldset_der
        {
            width: 44% !important;
        }
        .col_izq
        {
            width: 75px;
        }
        .contenido
        {
            width: 100%;
        }
    </style>
    <script type="text/javascript">
        function Buscar(id) {
            if (id == "C") {
                document.getElementById('<%=btnBuscarContacto.ClientID%>').click();
            } else if (id == "S") {
                document.getElementById('<%=btnBuscarServicio.ClientID%>').click();
            } else if (id == "P") {
                document.getElementById('<%=btnBuscarProducto.ClientID%>').click();
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="principal">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" Width="100%" HeaderText="Información de Clientes a Visitar - Actualizar">
                    <PanelCollection>
                        <dx:PanelContent>
                            <div id="contenido">
                                <div id="fieldset_izq">
                                    <fieldset>
                                        <legend>Datos del Cliente</legend>
                                        <table width="100%">
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblCodCliente" runat="server" Text="Codigo del Cliente">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="5" class="filas">
                                                    <dx:ASPxTextBox ID="txtCodCliente" runat="server" Width="170px" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblRazonSocial" runat="server" Text="Razon Social">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="5" class="filas">
                                                    <dx:ASPxTextBox ID="txtRazonSocial" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblDireccion" runat="server" Text="Direccion">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="5" class="filas">
                                                    <dx:ASPxTextBox ID="txtDireccion" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblProvincia" runat="server" Text="Provincia">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="2" class="filas">
                                                    <dx:ASPxTextBox ID="txtProvincia" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxLabel ID="lblDistrito" runat="server" Text="Distrito">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="2" class="filas">
                                                    <dx:ASPxTextBox ID="txtDistrito" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblServicio" runat="server" Text="Servicio">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="2" class="filas">
                                                    <dx:ASPxTextBox ID="txtServicio" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        OnInit="txtServicio_Init">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxLabel ID="lblProducto" runat="server" Text="Producto">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="2" class="filas">
                                                    <dx:ASPxTextBox ID="txtProducto" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        OnInit="txtProducto_Init">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblPresupuesto" runat="server" Text="Presupuesto">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtPresupuesto" runat="server" Width="90px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxComboBox ID="cboTipoPresupuesto" runat="server" Width="100%" SelectedIndex="0" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <Items>
                                                            <dx:ListEditItem Selected="True" Text="Dolares" Value="0" />
                                                            <dx:ListEditItem Text="Soles" Value="1" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxLabel ID="lblTiempoEjecucion" runat="server" Text="Tiempo de Ejecución">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtTiempoEjecucion" runat="server" Width="50px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxComboBox ID="cboTipoTiempoejecucion" runat="server" Width="100%" SelectedIndex="0" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <Items>
                                                            <dx:ListEditItem Selected="True" Text="Meses" Value="0" />
                                                            <dx:ListEditItem Text="Dias" Value="1" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td class="filas" align="right">
                                                    <dx:ASPxButton ID="btnDatosOportunidadActualizar" runat="server" Text="Actualizar" Width="100px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" OnClick="btnDatosOportunidadActualizar_Click"
                                                        SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxButton ID="btnBuscarServicio" runat="server" Width="1px" ClientVisible="false" OnClick="btnBuscarServicio_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnBuscarProducto" runat="server" Width="1px" ClientVisible="false" OnClick="btnBuscarProducto_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtCodServicio" runat="server" Width="1px" ClientVisible="false">
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtCodProducto" runat="server" Width="1px" ClientVisible="false">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset>
                                        <legend>Datos de la Visita</legend>
                                        <table width="100%">
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblPersonaContacto" runat="server" Text="Persona de Contacto">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtPersonaContacto" runat="server" Width="150px" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        OnInit="txtPersonaContacto_Init">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxLabel ID="lblCargo" runat="server" Text="Cargo">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td colspan="3" class="filas">
                                                    <dx:ASPxTextBox ID="txtCargo" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblMovil" runat="server" Text="Móvil">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtMovil" runat="server" Width="150px" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxLabel ID="lblFijo" runat="server" Text="Fijo">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtFijo" runat="server" Width="100px" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxLabel ID="lblAnexo" runat="server" Text="Anx.">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtAnexo" runat="server" Width="100%" ReadOnly="true" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas col_izq">
                                                    <dx:ASPxLabel ID="lblFecha" runat="server" Text="Fecha">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxDateEdit ID="dtpFecha" runat="server" Width="150px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxDateEdit>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxLabel ID="lblHora" runat="server" Text="Hora">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtHora" runat="server" Width="50px" MaxLength="5" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        Text="00:00">
                                                        <MaskSettings Mask="00:00" />
                                                        <ValidationSettings ValidateOnLeave="False">
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td colspan="2" class="filas">
                                                    <dx:ASPxComboBox ID="cboTipoHora" runat="server" SelectedIndex="0" Width="50px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <Items>
                                                            <dx:ListEditItem Selected="True" Text="a.m." Value="0" />
                                                            <dx:ListEditItem Text="p.m." Value="1" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxButton ID="btnBuscarContacto" runat="server" ClientVisible="false" Width="1px" OnClick="btnBuscarContacto_Click">
                                                    </dx:ASPxButton>
                                                    <dx:ASPxTextBox ID="txtCodContacto" runat="server" Width="1px" ClientVisible="false">
                                                    </dx:ASPxTextBox>
                                                    <dx:ASPxTextBox ID="txtRutaAcuerdo" runat="server" Width="1px" ClientVisible="false">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr align="right" class="filas">
                                                <td>
                                                    <dx:ASPxButton ID="btnCrearContacto" runat="server" Text="Crear Contacto" Width="125px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        OnClick="btnCrearContacto_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnModContacto" runat="server" Text="Modificar Contacto" Width="125px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        OnClick="btnModContacto_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnGrabarDetalleVisita" runat="server" Text="Grabar" Width="125px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        OnClick="btnGrabarDetalleVisita_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxButton ID="btnRegresarDetalleVisita" runat="server" Text="Regresar" Width="125px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                        OnClick="btnRegresarDetalleVisita_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td class="filas">
                                                    <dx:ASPxGridView ID="dgvDetalleVisita" runat="server" KeyFieldName="co_contacto" Width="100%" AutoGenerateColumns="False" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                        OnCustomColumnDisplayText="dgvDetalleVisita_CustomColumnDisplayText" OnAfterPerformCallback="dgvDetalleVisita_AfterPerformCallback" OnPageIndexChanged="dgvDetalleVisita_PageIndexChanged">
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="0" FieldName="co_contacto" Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="1" Caption="Persona de Contacto" FieldName="no_contacto" Width="200px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="2" Caption="Cargo" FieldName="no_cargo">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="3" Caption="Movil" FieldName="nu_telef_cel">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataDateColumn Caption="Fecha" FieldName="fe_visita" ShowInCustomizationForm="True" VisibleIndex="4">
                                                                <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                                                </PropertiesDateEdit>
                                                            </dx:GridViewDataDateColumn>
                                                            <dx:GridViewDataTextColumn Caption="Hora" FieldName="fe_hora" ShowInCustomizationForm="True" VisibleIndex="5" Width="100px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="6" Caption="Acuerdo" FieldName="no_ruta_acuerdo">
                                                                <DataItemTemplate>
                                                                    <dx:ASPxButton ID="btnMostrar" runat="server" Text='<%# Eval("no_ruta_acuerdo") %>' ToolTip='<%# String.Format("MostrarAcuerdo.aspx?arch={0}",Eval("ruta_acuerdo")) %>' OnClick="btnMostrar_Click">
                                                                    </dx:ASPxButton>
                                                                </DataItemTemplate>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="8" Caption="Oportunidad" FieldName="co_oportunidad" Visible="false">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="9" FieldName="co_cont_opor" Visible="false">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="ACCIONES" ShowInCustomizationForm="True" VisibleIndex="7" Width="150px">
                                                                <DataItemTemplate>
                                                                    <dx:ASPxHyperLink ID="lnkEditar" runat="server" NavigateUrl='<%# String.Format("~/Gestion/wfrmContactoActualizar.aspx?id_cc=4&cc={0}&nr={1}&co={2}&cco={3}", Eval("co_contacto"), Eval("nu_ruc"), Eval("co_oportunidad"), Eval("co_cont_opor")) %>'
                                                                        Text="Editar" />
                                                                    <dx:ASPxHyperLink ID="lnkEliminar" runat="server" NavigateUrl='<%# String.Format("~/Gestion/wfrmContactoActualizar.aspx?id_cc=5&cc={0}&nr={1}&co={2}&cco={3}", Eval("co_contacto"), Eval("nu_ruc"), Eval("co_oportunidad"), Eval("co_cont_opor")) %>'
                                                                        Text="Eliminar" />
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsPager ShowDefaultImages="False">
                                                            <AllButton Text="All">
                                                            </AllButton>
                                                            <NextPageButton Text="Next &gt;">
                                                            </NextPageButton>
                                                            <PrevPageButton Text="&lt; Prev">
                                                            </PrevPageButton>
                                                        </SettingsPager>
                                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                            </Header>
                                                        </Styles>
                                                        <StylesEditors>
                                                            <CalendarHeader Spacing="11px">
                                                            </CalendarHeader>
                                                            <ProgressBar Height="25px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </div>
                                <div id="fieldset_der">
                                    <fieldset class="fieldset_der">
                                        <legend>Estadisticas</legend>
                                        <div id="HistorialEsfuerzo" class="filas">
                                            <dxchartsui:WebChartControl ID="wccGraf01" runat="server" Width="400px" DataSourceID="dsHistorialEsfuerzoObj" Height="200px">
                                                <diagramserializable>
                                                <cc1:XYDiagram>
                                                    <axisx visibleinpanesserializable="-1"><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><label staggered="True" /><datetimeoptions format="MonthAndDay" />
                                                        <label staggered="True" />
                                                        <range sidemarginsenabled="True" />
                                                        <datetimeoptions format="MonthAndDay" />
                                                    </axisx>
                                                    <axisy visibleinpanesserializable="-1"><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" /><range sidemarginsenabled="True" />
                                                        <range sidemarginsenabled="True" />
                                                    </axisy>
                                                </cc1:XYDiagram>
                                            </diagramserializable>
                                                <fillstyle>
                                                <optionsserializable><cc1:SolidFillOptions /></optionsserializable>
                                            </fillstyle>
                                                <seriesserializable>
                                                <cc1:Series Name="Series 1" ShowInLegend="False" ArgumentDataMember="fe_creacion" ArgumentScaleType="DateTime" ValueDataMembersSerializable="qt_esfuerzo">
                                                    <viewserializable><cc1:LineSeriesView></cc1:LineSeriesView></viewserializable>
                                                    <labelserializable><cc1:PointSeriesLabel LineVisible="True"><fillstyle><optionsserializable><cc1:SolidFillOptions /></optionsserializable></fillstyle><pointoptionsserializable><cc1:PointOptions></cc1:PointOptions></pointoptionsserializable></cc1:PointSeriesLabel></labelserializable>
                                                    <legendpointoptionsserializable><cc1:PointOptions></cc1:PointOptions></legendpointoptionsserializable>
                                                </cc1:Series>
                                            </seriesserializable>
                                                <seriestemplate>
                                                <viewserializable><cc1:LineSeriesView></cc1:LineSeriesView></viewserializable>
                                                <labelserializable><cc1:PointSeriesLabel LineVisible="True"><fillstyle><optionsserializable><cc1:SolidFillOptions /></optionsserializable></fillstyle><pointoptionsserializable><cc1:PointOptions></cc1:PointOptions></pointoptionsserializable></cc1:PointSeriesLabel></labelserializable>
                                                <legendpointoptionsserializable><cc1:PointOptions></cc1:PointOptions></legendpointoptionsserializable>
                                            </seriestemplate>
                                                <titles>
                                                <cc1:ChartTitle Text="Historial del Esfuerzo" />
                                            </titles>
                                            </dxchartsui:WebChartControl>
                                            <asp:ObjectDataSource ID="dsHistorialEsfuerzoObj" runat="server" SelectMethod="HistorialEsfuerzo" TypeName="BusinessLayer.Implementacion.FacadeInformacionClientesVisitarActualizar">
                                                <SelectParameters>
                                                    <asp:QueryStringParameter DefaultValue="null" Name="nu_ruc_cliente" QueryStringField="nr" Type="Int64" />
                                                    <asp:QueryStringParameter DefaultValue="null" Name="co_producto" QueryStringField="cp" Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                        </div>
                                        <div id="HistorialPresupuesto" class="filas">
                                            <dxchartsui:WebChartControl ID="wccGraf02" runat="server" DataSourceID="dsHistorialEsfuerzoObj" Height="200px" Width="400px">
                                                <diagramserializable>
                                                    <cc1:XYDiagram>
                                                        <axisx visibleinpanesserializable="-1"><range sidemarginsenabled="True" /><label staggered="True" /><datetimeoptions format="MonthAndDay" />
                                                            <label staggered="True" />
                                                            <range sidemarginsenabled="True" />
                                                            <datetimeoptions format="MonthAndDay" />
                                                        </axisx>
                                                        <axisy visibleinpanesserializable="-1"><range sidemarginsenabled="True" />
                                                            <range sidemarginsenabled="True" />
                                                        </axisy>
                                                    </cc1:XYDiagram>
                                                </diagramserializable>
                                                <fillstyle>
                                                    <optionsserializable><cc1:SolidFillOptions /></optionsserializable>
                                                </fillstyle>
                                                <legend visible="False"></legend>
                                                <seriesserializable>
                                                    <cc1:Series ArgumentDataMember="fe_creacion" ArgumentScaleType="DateTime" Name="Series 1" ValueDataMembersSerializable="qt_presupuesto">
                                                        <viewserializable><cc1:LineSeriesView></cc1:LineSeriesView></viewserializable>
                                                        <labelserializable><cc1:PointSeriesLabel LineVisible="True"><fillstyle><optionsserializable><cc1:SolidFillOptions /></optionsserializable></fillstyle><pointoptionsserializable><cc1:PointOptions></cc1:PointOptions></pointoptionsserializable></cc1:PointSeriesLabel></labelserializable>
                                                        <legendpointoptionsserializable><cc1:PointOptions></cc1:PointOptions></legendpointoptionsserializable>
                                                    </cc1:Series>
                                                </seriesserializable>
                                                <seriestemplate>
                                                    <viewserializable><cc1:LineSeriesView></cc1:LineSeriesView></viewserializable>
                                                    <labelserializable><cc1:PointSeriesLabel LineVisible="True"><fillstyle><optionsserializable><cc1:SolidFillOptions /></optionsserializable></fillstyle><pointoptionsserializable><cc1:PointOptions></cc1:PointOptions></pointoptionsserializable></cc1:PointSeriesLabel></labelserializable>
                                                    <legendpointoptionsserializable><cc1:PointOptions></cc1:PointOptions></legendpointoptionsserializable>
                                                </seriestemplate>
                                                <titles>
                                                    <cc1:ChartTitle Text="Historial del Presupuesto" />
                                                </titles>
                                            </dxchartsui:WebChartControl>
                                        </div>
                                        <div id="AvancePresupuesto" class="filas">
                                            <dxchartsui:WebChartControl ID="wccGraf03" runat="server" Width="400px" Height="200px" DataSourceID="dsHistorialEsfuerzoObj">
                                                <diagramserializable>
                                                    <cc1:XYDiagram>
                                                        <axisx visibleinpanesserializable="-1"><label staggered="True" /><range sidemarginsenabled="True" /><datetimeoptions format="MonthAndDay" />
                                                            <label staggered="True" />
                                                            <range sidemarginsenabled="True" />
                                                            <datetimeoptions format="MonthAndDay" />
                                                        </axisx>
                                                        <axisy visibleinpanesserializable="-1"><range sidemarginsenabled="True" />
                                                            <range sidemarginsenabled="True" />
                                                        </axisy>
                                                    </cc1:XYDiagram>
                                                </diagramserializable>
                                                <fillstyle>
                                                    <optionsserializable><cc1:SolidFillOptions /></optionsserializable>
                                                </fillstyle>
                                                <legend visible="False"></legend>
                                                <seriesserializable>
                                                    <cc1:Series ArgumentDataMember="fe_creacion" ArgumentScaleType="DateTime" Name="Series 1" ValueDataMembersSerializable="qt_presupuesto">
                                                        <viewserializable><cc1:SideBySideBarSeriesView></cc1:SideBySideBarSeriesView></viewserializable>
                                                        <labelserializable><cc1:SideBySideBarSeriesLabel LineVisible="True"><fillstyle><optionsserializable><cc1:SolidFillOptions /></optionsserializable></fillstyle><pointoptionsserializable><cc1:PointOptions></cc1:PointOptions></pointoptionsserializable></cc1:SideBySideBarSeriesLabel></labelserializable>
                                                        <legendpointoptionsserializable><cc1:PointOptions></cc1:PointOptions></legendpointoptionsserializable>
                                                    </cc1:Series>
                                                </seriesserializable>
                                                <seriestemplate>
                                                    <viewserializable><cc1:SideBySideBarSeriesView></cc1:SideBySideBarSeriesView></viewserializable>
                                                    <labelserializable><cc1:SideBySideBarSeriesLabel LineVisible="True"><fillstyle><optionsserializable><cc1:SolidFillOptions /></optionsserializable></fillstyle><pointoptionsserializable><cc1:PointOptions></cc1:PointOptions></pointoptionsserializable></cc1:SideBySideBarSeriesLabel></labelserializable>
                                                    <legendpointoptionsserializable><cc1:PointOptions></cc1:PointOptions></legendpointoptionsserializable>
                                                </seriestemplate>
                                                <titles>
                                                    <cc1:ChartTitle Text="Avance del Presupuesto" />
                                                </titles>
                                            </dxchartsui:WebChartControl>
                                        </div>
                                        <div id="AvanceEsfuerzo" class="filas">
                                            <dxchartsui:WebChartControl ID="wccGraf04" runat="server" Height="200px" Width="400px" DataSourceID="dsAvanceEsfuerzoObj">
                                                <diagramserializable>
                                                    <cc1:XYDiagram>
                                                        <axisx visibleinpanesserializable="-1">
                                                            <label staggered="True" />
                                                            <range sidemarginsenabled="True" />
                                                            <datetimeoptions format="MonthAndDay" />
                                                        </axisx>
                                                        <axisy visibleinpanesserializable="-1">
                                                            <range sidemarginsenabled="True" />
                                                        </axisy>
                                                    </cc1:XYDiagram>
                                                </diagramserializable>
                                                <fillstyle>
                                                    <optionsserializable>
                                                        <cc1:SolidFillOptions />
                                                    </optionsserializable>
                                                </fillstyle>
                                                <legend visible="False"></legend>
                                                <seriesserializable>
                                                    <cc1:Series ArgumentDataMember="fe_programada" ArgumentScaleType="DateTime" Name="Series 1" ValueDataMembersSerializable="qt_costo_actividad">
                                                        <viewserializable>
                                                            <cc1:SideBySideBarSeriesView>
                                                            </cc1:SideBySideBarSeriesView>
                                                        </viewserializable>
                                                        <labelserializable>
                                                            <cc1:SideBySideBarSeriesLabel LineVisible="True">
                                                                <fillstyle>
                                                                    <optionsserializable>
                                                                        <cc1:SolidFillOptions />
                                                                    </optionsserializable>
                                                                </fillstyle>
                                                                <pointoptionsserializable>
                                                                    <cc1:PointOptions>
                                                                    </cc1:PointOptions>
                                                                </pointoptionsserializable>
                                                            </cc1:SideBySideBarSeriesLabel>
                                                        </labelserializable>
                                                        <legendpointoptionsserializable>
                                                            <cc1:PointOptions>
                                                            </cc1:PointOptions>
                                                        </legendpointoptionsserializable>
                                                    </cc1:Series>
                                                </seriesserializable>
                                                <seriestemplate>
                                                    <viewserializable>
                                                        <cc1:SideBySideBarSeriesView>
                                                        </cc1:SideBySideBarSeriesView>
                                                    </viewserializable>
                                                    <labelserializable>
                                                        <cc1:SideBySideBarSeriesLabel LineVisible="True">
                                                            <fillstyle>
                                                                <optionsserializable>
                                                                    <cc1:SolidFillOptions />
                                                                </optionsserializable>
                                                            </fillstyle>
                                                            <pointoptionsserializable>
                                                                <cc1:PointOptions>
                                                                </cc1:PointOptions>
                                                            </pointoptionsserializable>
                                                        </cc1:SideBySideBarSeriesLabel>
                                                    </labelserializable>
                                                    <legendpointoptionsserializable>
                                                        <cc1:PointOptions>
                                                        </cc1:PointOptions>
                                                    </legendpointoptionsserializable>
                                                </seriestemplate>
                                                <titles>
                                                    <cc1:ChartTitle Text="Avance del Esfuerzo" />
                                                </titles>
                                            </dxchartsui:WebChartControl>
                                            <asp:ObjectDataSource ID="dsAvanceEsfuerzoObj" runat="server" SelectMethod="AvanceEsfuerzo" TypeName="BusinessLayer.Implementacion.FacadeInformacionClientesVisitarActualizar">
                                                <SelectParameters>
                                                    <asp:SessionParameter DefaultValue="null" Name="nu_ruc" SessionField="nr" Type="Int64" />
                                                    <asp:SessionParameter DefaultValue="null" Name="co_servicio" SessionField="cs" Type="Int32" />
                                                    <asp:SessionParameter DefaultValue="null" Name="co_producto" SessionField="cp" Type="Int32" />
                                                    <asp:SessionParameter DefaultValue="null" Name="co_presupuesto" SessionField="cps" Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                        </div>
                                    </fieldset>
                                </div>
                            </div>
                            <div style="clear: both;">
                            </div>
                            <div id="PopUp">
                                <dx:ASPxPopupControl ID="pcMensaje" runat="server" AllowDragging="True" ClientInstanceName="pcMensaje" CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                    CssPostfix="PlasticBlue" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                    Width="300px">
                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                    </LoadingPanelImage>
                                    <CloseButtonStyle>
                                        <Paddings Padding="0px" />
                                    </CloseButtonStyle>
                                    <ContentStyle>
                                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    </ContentStyle>
                                    <HeaderStyle>
                                        <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                                    </HeaderStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                            <table align="center" width="100%">
                                                <tr>
                                                    <td align="center" colspan="2" class="filas">
                                                        <dx:ASPxLabel ID="lblmenOK" runat="server">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" align="center" class="filas">
                                                        <dx:ASPxButton ID="btnAceptarOK" runat="server" AutoPostBack="False" CausesValidation="False" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                            Text="Aceptar" Width="100px">
                                                            <ClientSideEvents Click="function(s, e) { pcMensaje.Hide(); }" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                                <dx:ASPxPopupControl ID="pcContacto" runat="server" ClientInstanceName="pcContacto" AllowDragging="true" AllowResize="false" Width="850px" CloseAction="CloseButton" HeaderText="Lista de Contactos"
                                    Modal="true" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                    </LoadingPanelImage>
                                    <CloseButtonStyle>
                                        <Paddings Padding="0px" />
                                    </CloseButtonStyle>
                                    <ContentStyle>
                                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    </ContentStyle>
                                    <HeaderStyle>
                                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    </HeaderStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                            <table width="100%">
                                                <tr>
                                                    <td colspan="2" class="filas">
                                                        <dx:ASPxGridView ID="dgvContactos" runat="server" KeyFieldName="co_contacto" Width="100%" AutoGenerateColumns="False" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                            OnAfterPerformCallback="dgvContactos_AfterPerformCallback" OnPageIndexChanged="dgvContactos_PageIndexChanged">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="co_contacto" ShowInCustomizationForm="True" VisibleIndex="0" Visible="false">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Nombres" FieldName="no_contacto" ShowInCustomizationForm="True" VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Apellidos" FieldName="no_apellidos" ShowInCustomizationForm="True" VisibleIndex="2">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="DNI" FieldName="nu_tipo_documento" ShowInCustomizationForm="True" VisibleIndex="3">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Celular" FieldName="nu_telef_cel" ShowInCustomizationForm="True" VisibleIndex="4">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Fijo" FieldName="nu_telef_fijo" ShowInCustomizationForm="True" VisibleIndex="5">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Anexo" FieldName="nu_telf_fijo_anexo" ShowInCustomizationForm="True" VisibleIndex="6">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Email" FieldName="no_email" ShowInCustomizationForm="True" VisibleIndex="7">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsBehavior AllowFocusedRow="True" />
                                                            <SettingsPager ShowDefaultImages="False">
                                                                <AllButton Text="All">
                                                                </AllButton>
                                                                <NextPageButton Text="Next &gt;">
                                                                </NextPageButton>
                                                                <PrevPageButton Text="&lt; Prev">
                                                                </PrevPageButton>
                                                            </SettingsPager>
                                                            <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                                </LoadingPanelOnStatusBar>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                                </LoadingPanel>
                                                            </Images>
                                                            <ImagesFilterControl>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                                </LoadingPanel>
                                                            </ImagesFilterControl>
                                                            <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                                <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                                </Header>
                                                            </Styles>
                                                            <StylesEditors>
                                                                <CalendarHeader Spacing="11px">
                                                                </CalendarHeader>
                                                                <ProgressBar Height="25px">
                                                                </ProgressBar>
                                                            </StylesEditors>
                                                        </dx:ASPxGridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" class="filas">
                                                        <dx:ASPxButton ID="btnContactoAceptar" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" OnClick="btnContactoAceptar_Click"
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td align="left" class="filas">
                                                        <dx:ASPxButton ID="btnContactoCancelar" runat="server" Text="Cancelar" AutoPostBack="false" Width="100px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                            <ClientSideEvents Click="function(s, e) { pcContacto.Hide(); }" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                                <dx:ASPxPopupControl ID="pcServicio" runat="server" ClientInstanceName="pcServicio" AllowDragging="true" AllowResize="false" Width="850px" CloseAction="CloseButton" HeaderText="Lista de Servicios"
                                    Modal="true" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                    </LoadingPanelImage>
                                    <CloseButtonStyle>
                                        <Paddings Padding="0px" />
                                    </CloseButtonStyle>
                                    <ContentStyle>
                                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    </ContentStyle>
                                    <HeaderStyle>
                                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    </HeaderStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                                            <table width="100%">
                                                <tr>
                                                    <td colspan="2" class="filas">
                                                        <dx:ASPxGridView ID="dgvServicios" runat="server" KeyFieldName="co_servicio" Width="100%" AutoGenerateColumns="False" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                            OnAfterPerformCallback="dgvServicios_AfterPerformCallback" OnPageIndexChanged="dgvServicios_PageIndexChanged">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="co_servicio" ShowInCustomizationForm="True" VisibleIndex="0" Visible="false">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Código" FieldName="cod_servicio" ShowInCustomizationForm="True" VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Servicio" FieldName="no_servicio" ShowInCustomizationForm="True" VisibleIndex="2">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Descripción" FieldName="no_descripcion" ShowInCustomizationForm="True" VisibleIndex="3">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsBehavior AllowFocusedRow="True" />
                                                            <SettingsPager ShowDefaultImages="False">
                                                                <AllButton Text="All">
                                                                </AllButton>
                                                                <NextPageButton Text="Next &gt;">
                                                                </NextPageButton>
                                                                <PrevPageButton Text="&lt; Prev">
                                                                </PrevPageButton>
                                                            </SettingsPager>
                                                            <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                                </LoadingPanelOnStatusBar>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                                </LoadingPanel>
                                                            </Images>
                                                            <ImagesFilterControl>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                                </LoadingPanel>
                                                            </ImagesFilterControl>
                                                            <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                                <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                                </Header>
                                                            </Styles>
                                                            <StylesEditors>
                                                                <CalendarHeader Spacing="11px">
                                                                </CalendarHeader>
                                                                <ProgressBar Height="25px">
                                                                </ProgressBar>
                                                            </StylesEditors>
                                                        </dx:ASPxGridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" class="filas">
                                                        <dx:ASPxButton ID="btnServicioAceptar" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                            OnClick="btnServicioAceptar_Click">
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td align="left" class="filas">
                                                        <dx:ASPxButton ID="btnServicioCancelar" runat="server" Text="Cancelar" AutoPostBack="false" Width="100px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                            <ClientSideEvents Click="function(s, e) { pcServicio.Hide(); }" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                                <dx:ASPxPopupControl ID="pcProducto" runat="server" ClientInstanceName="pcProducto" AllowDragging="true" AllowResize="false" Width="850px" CloseAction="CloseButton" HeaderText="Lista de Productos"
                                    Modal="true" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                    </LoadingPanelImage>
                                    <CloseButtonStyle>
                                        <Paddings Padding="0px" />
                                    </CloseButtonStyle>
                                    <ContentStyle>
                                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    </ContentStyle>
                                    <HeaderStyle>
                                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    </HeaderStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                                            <table width="100%">
                                                <tr>
                                                    <td colspan="2" class="filas">
                                                        <dx:ASPxGridView ID="dgvProducto" runat="server" KeyFieldName="co_producto" Width="100%" AutoGenerateColumns="False" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                            OnAfterPerformCallback="dgvProducto_AfterPerformCallback" OnPageIndexChanged="dgvProducto_PageIndexChanged">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="co_producto" ShowInCustomizationForm="True" VisibleIndex="0" Visible="false">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Código" FieldName="cod_producto" ShowInCustomizationForm="True" VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Servicio" FieldName="no_producto" ShowInCustomizationForm="True" VisibleIndex="2">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Descripción" FieldName="no_descripcion" ShowInCustomizationForm="True" VisibleIndex="3">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsBehavior AllowFocusedRow="True" />
                                                            <SettingsPager ShowDefaultImages="False">
                                                                <AllButton Text="All">
                                                                </AllButton>
                                                                <NextPageButton Text="Next &gt;">
                                                                </NextPageButton>
                                                                <PrevPageButton Text="&lt; Prev">
                                                                </PrevPageButton>
                                                            </SettingsPager>
                                                            <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                                </LoadingPanelOnStatusBar>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                                </LoadingPanel>
                                                            </Images>
                                                            <ImagesFilterControl>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                                </LoadingPanel>
                                                            </ImagesFilterControl>
                                                            <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                                <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                                </Header>
                                                            </Styles>
                                                            <StylesEditors>
                                                                <CalendarHeader Spacing="11px">
                                                                </CalendarHeader>
                                                                <ProgressBar Height="25px">
                                                                </ProgressBar>
                                                            </StylesEditors>
                                                        </dx:ASPxGridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" class="filas">
                                                        <dx:ASPxButton ID="btnProductoAceptar" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                            OnClick="btnProductoAceptar_Click">
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td align="left" class="filas">
                                                        <dx:ASPxButton ID="btnProductoCancelar" runat="server" Text="Cancelar" AutoPostBack="false" Width="100px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                            <ClientSideEvents Click="function(s, e) { pcProducto.Hide(); }" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                                <dx:ASPxPopupControl ID="pcCargaAcuerdo" runat="server" ClientInstanceName="pcCargaAcuerdo" AllowDragging="true" AllowResize="false" Width="450px" CloseAction="CloseButton" HeaderText="Cargar Acuerdo"
                                    Modal="true" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                    </LoadingPanelImage>
                                    <CloseButtonStyle>
                                        <Paddings Padding="0px" />
                                    </CloseButtonStyle>
                                    <ContentStyle>
                                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    </ContentStyle>
                                    <HeaderStyle>
                                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    </HeaderStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                                            <table width="100%">
                                                <tr align="center">
                                                    <td class="filas">
                                                        <dx:ASPxUploadControl ID="uplArchivo" runat="server" Width="400px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" ShowProgressPanel="True" ShowUploadButton="True"
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" OnFileUploadComplete="uplArchivo_FileUploadComplete" ClientInstanceName="uploader" UploadMode="Advanced">
                                                            <ValidationSettings MultiSelectionErrorText="Attention! 
The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 
{2}" AllowedFileExtensions=".pdf">
                                                            </ValidationSettings>
                                                            <ClientSideEvents FileUploadComplete="function(s, e) {btnUpdate.DoClick();}"></ClientSideEvents>
                                                            <UploadButton Text="Importar Acuerdo">
                                                            </UploadButton>
                                                            <CancelButton Text="Cancelar Importación">
                                                            </CancelButton>
                                                        </dx:ASPxUploadControl>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" class="filas">
                                                        <dx:ASPxButton ID="btnCargaAcuerdoCancelar" runat="server" Text="Cancelar" AutoPostBack="false">
                                                            <ClientSideEvents Click="function(s, e){pcCargaAcuerdo.Hide();}" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                            </div>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxRoundPanel>
                <dx:ASPxButton ID="btnUpdate" runat="server" ClientInstanceName="btnUpdate" ClientVisible="false" OnClick="CargarDatosGrid">
                </dx:ASPxButton>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>
